var label_table_two_Event={
		table_colspan:1,//列
		table_rowspan:1,//行
		name :function(){return JSON.parse(getLocalInfo("label_table_two.html")).name},
		text :function(){return JSON.parse(getLocalInfo("label_table_two.html")).text},
		init:function(){
			if($("[id^='label_create_resize_table_']").length>0){
				$("#label_create_resize_table_").attr("id","label_create_resize_table_"+this.name());
				$("#label_create_resize_table_"+this.name()).colResizable({disable:true});
				$("#label_create_resize_table_"+this.name()).colResizable({
					liveDrag:true, 
					gripInnerHtml:"<div class='grip'></div>", 
					draggingClass:"dragging", 
		            resizeMode:'fit',
		            onResize:function(e){
		            	var table = $(e.currentTarget); //reference to the resized table
		            	console.info("resize");
		            },
		            onDrag:function(e){
		            	var table = $(e.currentTarget); //reference to the resized table
		            	console.info("drap");
		            }
		        });
				$("#label_create_resize_table_"+this.name()).unbind("click");
				$("#label_create_resize_table_"+this.name()).bind("click",function(){
					$(document).resize();
				})
			}
			Util_tinymce.bindEvent();
		},
		comfirmTableSize:function(){
			$.messager.prompt('提醒', '请输入表格行数(数字):', function(r){
				if (r&&!isNaN(r)&&r!=""){
					label_table_two_Event.table_rowspan=r;
					$.messager.prompt('提醒', '请输入表格列数(数字):', function(r){
						if (r&&!isNaN(r)&&r!=""){
							label_table_two_Event.table_colspan=r;
							label_table_two_Event.createTable();
						}else{
							alert("请输入数字,请重新选择");
							$(".right-div-comp-all100-").parent().parent().find(".close").click();
						}
					});
				}else{
					alert("请输入数字,请重新选择");
					$(".right-div-comp-all100-").parent().parent().find(".close").click();
				}
			});
		},
		createTable:function(){
			$(".right-div-comp-all100-").attr("class","right-div-comp-all100-"+this.name())
			$(".right-div-comp-all100-"+this.name()).empty();
			var str="<table id='label_create_resize_table_"+this.name()+"' class='label_create_resize_table_"+this.name()+"'>"
			for(i=0;i<label_table_two_Event.table_rowspan;i++){
				str+="<tr>";
				for(j=0;j<label_table_two_Event.table_colspan;j++){
					str+="<td class='label_create_resize_table_td' title='"+this.text()+"' contentEditable='true' name='order_label_table_val_"+this.name()+"'></td>";
				}
				str+="</tr>";
			}
			str+="</table>";
			$(".right-div-comp-all100-"+this.name()).append(str);
			this.init();
		}/*,
		refreshTable:function(){
			$("#label_create_resize_table_two").colResizable({
				liveDrag:true, 
				postbackSafe:true,
				partialRefresh:true
			});
		}*/
}
$("[id^='label_create_resize_table_']").unbind("click");
$("[id^='label_create_resize_table_']").bind("click",function(){
	$(document).resize();
})